<?php include '_header.phtml'; ?>

<div id="content">

<h1><?php echo $this->title; ?></h1>

<?php if(property_exists($this, 'error')): ?>
<div class="error">
<p><?php echo $this->error; ?></p>
</div>
<?php endif; ?>

<?php if(property_exists($this, 'properties')): ?>
<div class="intersection">
<?php if(property_exists($this, 'properties_title')): ?>
<h2><?php echo $this->properties_title; ?></h2>
<?php endif; ?>
<dl class="properties">
<?php foreach($this->properties as $name => $value): ?>
<dt><?php echo $name; ?></dt>
<dd><?php echo $value; ?></dd>
<?php endforeach; ?>
</dl>
<?php if(property_exists($this, 'buttons')): ?>
<p class="buttons">
<?php foreach($this->buttons as $button): ?>
<?php echo $button; ?>
<?php endforeach; ?>
</p>
<?php endif; ?>
</div>
<?php endif; ?>

<?php if(property_exists($this, 'text')): ?>
<?php echo $this->text; ?>
<?php endif ?>
</div> <!-- end content -->

<?php include '_footer.phtml'; ?>
